package com.example.controller;


import com.alibaba.fastjson.JSONObject;
import com.example.service.MerchProviderQueryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class MerchProviderQueryController {

    @Autowired()
    private MerchProviderQueryService merchProviderQueryService;

    /**
     * 进件查询
     * 接口说明：进件结果查询接口
     * 应用场景：该接口提供给服务商和商户通过API返回业务开通的结果
     */

    @PostMapping("/v1/MerchProviderQuery")
    public String MerchProviderQuery(@RequestBody JSONObject reqJson) throws Exception {
        log.info("前端请求的参数：--------------------------------->>>{}",reqJson);
        return merchProviderQueryService.MerchProviderQuery(reqJson);
    }

}
